﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;

namespace Lian_AiXiou
{
    public partial class WoDe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TBUsers users= IdentityManager.ReadUser();
            if (users == null)
            {
                Response.Redirect("DengLu.aspx");
            }
            else {
                Image1.ImageUrl = users.Avatar ?? "./avatar/1.jpg";
                lab_ai.Text = users.Hobby;
                lab_di.Text = users.Address;
                lab_ni.Text = users.NickName;
                lab_shi.Text = users.CreationTime.ToString();
                lab_xing.Text = users.Sex == 0 ? "未知" : users.Sex == 1 ? "男" : "女";

            }
        }
    }
}